package com.i2works.smartluolong.manage.controller.admin;

import com.i2works.smartluolong.utils.web.HtmlConstant;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 主页
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2018/1/16 11:58
 */
@Controller
@RequestMapping
public class IndexController {

    @Value("${shiro.login.url}")
    private String LoginUrl;

    /**
     * 跳转到登录页
     */
    @GetMapping(value = {"", "/", "/index"})
    public String index() {
        return HtmlConstant.REDIRECT + LoginUrl;
    }
}
